package com.mindainfo.configCenter.base.common;

import java.io.Serializable;

/**
 * 通用返回对象
 */
public  class Response<T> implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 返回状态码
	 * 0:成功
	 * 1:参数错误
	 * 2:服务器错误
	 */
	private int code;
	/**
	 * 成功后的返回文字
	 */
	private String successMsg;
	/**
	 * 失败后的错误信息
	 */
	private String errorMsg;
	/**
	 * 需要返回的数据
	 */
	private T data;
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getSuccessMsg() {
		return successMsg;
	}
	public void setSuccessMsg(String successMsg) {
		this.successMsg = successMsg;
	}
	public String getErrorMsg() {
		return errorMsg;
	}
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
}
